package com.wang.learn.common.exception;

import lombok.Getter;

/**
 * 类描述：基础Result枚举
 *
 * @author Charles
 * @time 2021/10/9 9:38
 */
@Getter
public enum CommonEnum {
    /**
     * 成共响应码
     */
    SUCCESS("200000","SUCCESS")
    /**
     * 失败响应码
     */
    ,FAIL("999999","FAIL");


    CommonEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 相应码
     */
    private String code;
    /**
     * 消息
     */
    private String msg;
}
